package _3Super关键字;

public class Animal {

	String name;
	int age;
	
	public Animal()
	{
		System.out.println("Animal() 构造方法被执行");
	}
	
	public Animal(String name)
	{
		this.name = name;
		System.out.println("Animal("+name+") 构造方法被执行");
	}
	
	void sing()
	{
		System.out.println(name+"在唱歌");
	}
}
